<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="//cdn.bootcss.com/pure/0.6.0/pure-min.css" rel="stylesheet"/>
</head>
<body ng-app="webApp">
    <div class="pure-g">
        <div class="pure-u-1-8">
            <div class="pure-menu custom-restricted-width">
                <ul class="pure-menu-list">
                    <li class="pure-menu-item pure-menu-active">
                        <a href="javascript:void(0);" class="pure-menu-link" ng-click="goIndex()">控制台1</a>
                    </li>
                    <li class="pure-menu-item has-children">
                        <a href="javascript:void(0);" class="pure-menu-link">任务管理</a>
                        <ul class="pure-menu-children">
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goTemplate()" class="pure-menu-link">任务模板</a></li>
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goMission()" class="pure-menu-link">任务下发</a></li>
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goMissionCheck()" class="pure-menu-link">任务审核</a></li>
                        </ul>
                    </li>
                    <li class="pure-menu-item has-children">
                        <a href="javascript:void(0);" class="pure-menu-link">财务管理</a>
                        <ul class="pure-menu-children">
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goTemplate()" class="pure-menu-link">任务模板</a></li>
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goMission()" class="pure-menu-link">任务下发</a></li>
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goMissionCheck()" class="pure-menu-link">任务审核</a></li>
                        </ul>
                    </li>
                    <li class="pure-menu-item has-children">
                        <a href="javascript:void(0);" class="pure-menu-link">数据分析</a>
                        <ul class="pure-menu-children">
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goTemplate()" class="pure-menu-link">任务模板</a></li>
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goMission()" class="pure-menu-link">任务下发</a></li>
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goMissionCheck()" class="pure-menu-link">任务审核</a></li>
                        </ul>
                    </li>
                    <li class="pure-menu-item has-children">
                        <a href="javascript:void(0);" class="pure-menu-link">系统管理</a>
                        <ul class="pure-menu-children">
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goTemplate()" class="pure-menu-link">任务模板</a></li>
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goMission()" class="pure-menu-link">任务下发</a></li>
                            <li class="pure-menu-item"><a href="javascript:void(0);" ng-click="goMissionCheck()" class="pure-menu-link">任务审核</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <div class="pure-u-7-8">
            <div ui-view></div>
        </div>
    </div>
    <script src="//cdn.bootcss.com/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
    <script src="//cdn.bootcss.com/angular.js/1.6.1/angular.min.js" type="text/javascript"></script>
    <script src="//cdn.bootcss.com/angular-ui-router/1.0.0/angular-ui-router.min.js"></script>
    <script>
        $(".has-children").click(function(){
            $(".pure-menu-children.show").removeClass("show");
            $(">.pure-menu-children",this).addClass("show");
            $(".pure-menu-list>li").eq(0).removeClass("pure-menu-active")
        });
    </script>
</body>
</html>